<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<link rel="StyleSheet" type="text/css" media="screen"
		href="${facesContext.externalContext.request.contextPath}/style/estilos.css" />
</h:head>
<h:body>
	<h:form prependId="false">
		<p:toolbar id="menuPrincipal1" style="width:100%;height:80px">

			<p:toolbarGroup align="center">

				<p:graphicImage value="/imagens/livro4.gif" height="18px"
					width="18px" onmouseover="style.cursor='pointer'"></p:graphicImage>

				<p:outputLabel value="Jvet"
					style="font-style: italic;font-size:24px"></p:outputLabel>

			</p:toolbarGroup>



		</p:toolbar>
	</h:form>


	<p:growl id="mensagem" showDetail="true" autoUpdate="true"
		showSummary="true" closable="true" />



	<h:form id="frm">
		<p:dialog visible="true" closable="false" header="Acesso ao Sistema"
			modal="false" focus=":frm:iptlogin" width="300" resizable="false">

			<h:panelGrid columns="2">
				<p:outputLabel value="Login"></p:outputLabel>
				<p:inputText id="iptlogin" value="#{loginMB.usuario.login}"></p:inputText>
				<p:outputLabel value="Senha"></p:outputLabel>
				<p:password value="#{loginMB.usuario.senha}"></p:password>
			</h:panelGrid>
			<div align="center">
				<h:panelGrid columns="2">
					<p:commandButton value="Entrar" action="#{loginMB.logar}"
						style="width:120px" update=":mensagem"></p:commandButton>

					<p:commandButton value="Cadastre-se"
						actionListener="#{usuarioMB.abrirModal}" update=":dialogCadastro"
						oncomplete="dialogCadastroUsuario.show()">

						<f:param name="modooperacao" value="INCLUIR" />
					</p:commandButton>
				</h:panelGrid>
			</div>
		</p:dialog>
	</h:form>


	<ui:include src="/paginas/acesso/dialogCadastroUsuario.xhtml" />
</h:body>
</html>